package com.otitan.forest.right.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.otitan.forest.right.dto.SysOrganizationDto;
import com.otitan.forest.right.dto.TreeDto;
import com.otitan.forest.right.entity.SysOrganizationEntity;

import java.util.List;

/**
 * 组织机构
 *
 * @author xiazw
 * @email *****@mail.com
 * @date 2020-08-04 14:19:44
 */
public interface SysOrganizationService extends IService<SysOrganizationEntity> {

    void checkInsertSysOrganization(SysOrganizationEntity sysOrganization);

    void checkDeleteSysOrganization(List<String> ids);

    void checkUpdateSysOrganization(SysOrganizationEntity sysOrganization);

    List<TreeDto> getSysOrganizationTree();

    void addOrUpdateSysOrganization(SysOrganizationDto sysOrganizationDto);

    List<String> getGroupId( String orgId);

    /**
     * 根据组织机构ID获取子组织机构信息
     * @author jiachangsen
     * @param [id]
     * @return java.lang.Object
     * @exception
     * @date 2020/08/11 09:28
     */
    List<TreeDto> getSysOrganizationById(String parentId, Boolean type, Integer level);

    List<TreeDto> getOrgByLevels(String levels);
}

